<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<%@ attribute name="categoryList" type="java.util.List" required="true" description="栏目列表"%>
<c:forEach items="${categoryList}" var="tpl">
	<dl>
      	<dt>
      		${tpl.name}
   		</dt>
   		<c:forEach items="${fnc:getArticleList(tpl.site.id, tpl.id, not empty pageSize?pageSize:8, '')}" var="article">
            <dd><a href="${ctx}/view-${article.category.id}-${article.id}${urlSuffix}" style="color:${article.color}" title="${article.title}">${fns:abbr(article.title,16)} <span></span></a> </dd>
		</c:forEach>
     </dl>
</c:forEach>